<?php 
if (!empty($_FILES)) {
	$tempFile = $_FILES['Filedata']['tmp_name'];
	$targetPath = '../media/texture/';
	$targetFile =  $targetPath . $_FILES['Filedata']['name'];
	
	move_uploaded_file($tempFile, $targetFile);
}
?>